home *** CD-ROM | disk | FTP | other *** search
/ PC Graphics Unleashed / PC Graphics Unleashed.iso / ch18 / rtrace / mol2scn.bat < prev    next >
DOS Batch File  |  1994-01-05  |  463b  |  23 lines

  1. @echo off
  2. set name=%0
  3. if "%1" == "" goto params
  4. if "%2" == "" goto params
  5. if not "%3" == "" goto params
  6. if not exist %1 goto error1
  7. if not exist %2 goto error2
  8. cat.exe %1 >tmp
  9. cat.exe %2 >>tmp
  10. tr.exe [A-Z] [a-z] <tmp|sed.exe "1,$s/^ +//g"|gawk.exe -f mol2scn.awk
  11. del tmp >nul
  12. goto end
  13. :params
  14. echo %name%: usage is "%name% {atomdef_file mol_file} [>scn_file]"
  15. goto end
  16. :error2
  17. shift
  18. :error1
  19. echo %name%: %1 not found
  20. goto end
  21. :end
  22. set name=
  23.